package com.hylanda.pb.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import com.hylanda.pb.dao.DisplayConfigDao;
import com.hylanda.pb.entity.DisplayConfig;
import com.hylanda.pb.model.DisplayConfigQo;

@Service
public class DisplayConfigService {
	@Autowired
	private DisplayConfigDao dao;

	public Page<DisplayConfig> findPage(DisplayConfigQo qo) {
		return dao.findPage(qo);
	}

	public DisplayConfig save(DisplayConfig displayConfig) {
		return dao.save(displayConfig);
	}

	public int delete(Long id) {
		return dao.delete(id);
	}

	public DisplayConfig findOne(Long id) {
		return dao.findOne(id);
	}

	public int update(DisplayConfig displayConfig) {
		return dao.update(displayConfig);
	}

}
